﻿using GWB.Application.System.LogManage.Dtos;
using GWB.Core;
using System.Threading.Tasks;

namespace GWB.Application.System.LogManage.LogService
{
  public  interface ILogService
  {
        /// <summary>
        /// 请求日志
        /// </summary>
        /// <param name="inputDto"></param>
        /// <returns></returns>
        Task<PageResult<Dtos.RequestLogOutDto>> RequestLogPage(Dtos.RequestLogPageInputDto inputDto);

        /// <summary>
        /// 添加请求日志
        /// </summary>
        /// <param name="inputDto"></param>
        /// <returns></returns>
        Task<bool> AddRequestLog(RequestLogCreateOrUpdateInputDto inputDto);

        /// <summary>
        /// 查询请求日志详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<RequestLogOutDto> GetRequestLogInfo(long id);

        /// <summary>
        /// 错误日志
        /// </summary>
        /// <param name="inputDto"></param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        Task<PageResult<ErrorLogOutDto>> ErrorLogPage(ErrorLogPageInputDto inputDto);
  }
}
